using System;
using UnityEngine;

namespace Gameplay.PVE
{
    public class ModelScaleModifier : MonoBehaviour
    {
        public Transform root;
        public void Refresh()
        {
            var worldScale = 1;
            var rootScale = root.transform.lossyScale.y;
            var scale = worldScale / rootScale;
            gameObject.transform.localScale = new Vector3(scale,scale,scale);
        }

        //public void Update()
        //{
        //    //Refresh();
        //}
    }
}